﻿/**
*查看业务员
*/
Chenxin.UI.EmpNumDetailForm = Chenxin.extend(Chenxin.UI.FormCommon,{
    actionUrl:'/service/logic/EfficencyManage.ashx',
    id:'jqmemp',
    renderTo:'divEmpDetail',
    winCls:'',
    jqmWidth:700,
    defBBtn:false,
    scope:this,
    createForm: function() {
        return Chenxin.FormCommon.EmpNumDetailForm(this.id);
    },
	createGrid:function(){
        return new Chenxin.UI.JsonGrid({
            actionUrl: this.actionUrl + '?op=employee',
            id: 'EmpNumDetail_grid',
            renderTo: this.id+'_grid',
            hasCheckBox:true,
            cellBorder:true,
            scope:this,
			autoLoad:false,
			pageSize:15,
			exportAble:false,
			hasCheckBox:false,
            columns: {
                City: {
                    head: '城市',
                    width: 100
                },
                Company: {
                    head: '公司',
                    width: 100
                },
                Businessdistrict: {
                    head: '商圈',
                    width: 100
                },
                Departs: {
                    head: '部门',
                    width: 100
                },
                EmployeeCode: {
                    head: '工号',
                    width: 100
                },
                Employee: {
                    head: '姓名',
                    width: 100
                },
                Position: {
                    head: '职务',
                    width: 100
                },
                BeginTime: {
                    head: '开始时间',
                    width: 100
                },
                EndTime: {
                    head: '结束时间',
                    width: 100
                },
                ChangType: {
                    head: '变动类型',
                    width: 100
                },
                TransType: {
                    head: '变动名称',
                    width: 100
                },
                PeopleNum: {
                    head: '人数',
                    width: 100
                },
                YearMonth: {
                    head: '年月',
                    width: 100
                }
            }
        });
	},
    saveSucc: function() {
        this.reloadGrid();
    },
    initComponent: function() {
        Chenxin.UI.EmpNumDetailForm.superclass.initComponent.call(this);
		this.grid=this.createGrid();
    }
});

Chenxin.FormCommon.EmpNumDetailForm=function(formID){
return '<div id="'+formID+'_grid"></div>';
};